﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Cartoes.aspx.cs" Inherits="PESWeb.Pages.Estatisticas.Cartoes" %>

<%@ Import Namespace="Campeonato.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="htmlHeaderContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    Cartões do Campeonato
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="pagecontent">
        <asp:GridView ID="gvCartoes" runat="server" CssClass="rankingGrid" AllowSorting="false"
            AutoGenerateColumns="false" OnRowDataBound="gvCartoes_RowDataBound" AllowPaging="true"
            Width="400px" OnPageIndexChanging="gvCartoes_PageIndexChanging" PageSize="15">
            <Columns>
                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <asp:Label ID="PosLabel" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Jogador">
                    <ItemTemplate>
                        <asp:Label ID="NomeJogadorVirtLabel" runat="server" Text='<%# Eval("Nome") %>' />
                        (<asp:Label ID="TimeLabel" Font-Size="XX-Small" ForeColor="LightGreen" runat="server"
                            Text='<%# Eval("Jogador.Nome") %>' />
                        <asp:Label ID="Label2" runat="server" ForeColor="LightGreen" Font-Size="XX-Small"
                            Text="-" />
                        <asp:Label ID="Label1" Font-Size="XX-Small" ForeColor="LightGreen" runat="server"
                            Text='<%# Eval("Jogador.TimeEscolhido") %>' />)
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="CV">
                    <ItemTemplate>
                        <asp:Label ID="CartaoVermelhoLabel" runat="server" Text='<%# Eval("TotalCartoesVermelhos") %>' />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="CA">
                    <ItemTemplate>
                        <asp:Label ID="CartaoAmareloLabel" runat="server" Text='<%# Eval("TotalCartoesAmarelos") %>' />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="legenda">
        <div id="legenda-tabela-classificacao">
            <span class="info-faixa-1">Legenda</span>
        </div>
        <div id="observacoes-tabela-classificacao" class="observacoes">
            <span><strong>CV</strong> cartões vermelhos </span><span><strong>CA</strong> cartões
                amarelos </span>
            <p>
            </p>
        </div>
    </div>
</asp:Content>
